import http from "@/utils/http"

//获取退件SKU
export function getRetreatStock() {
    return http.get('/by-behalf-stock/getRetreatStock')
}
//客户新增退件
export function by_retreatApply(params) {
    return http.post('/by-retreat-apply',params)
}

// 退件处理方式*
export function by_retreat_applyProcess_type() {
    return http.get('/by-retreat-apply/process-type')
}
// 查询退件列表*
export function by_retreatApply_Query(params) {
    return http.post('/by-retreat-apply/query',params)
}
//查询退件列表
export function by_retreatApply_pageApply(params) {
    return http.post('/by-retreat-apply/pageApply',params)
}
//状态统计
export function by_retreatApply_count(params) {
    return http.get('/by-retreat-apply/count/'+params)
}

// 获取退件申请详情*
export function by_retreatApply_detail(params) {
    return http.get('/by-retreat-apply/detail/'+params)
}

// 退件申请状态修改*
export function by_retreatApply_status(params) {
    return http.put('/by-retreat-apply/status',params)
}

//查看申请单详情
export function by_retreatApply_Info(params) {
    return http.get('/by-retreat-apply/'+params)
}
//修改申请单
export function by_retreatApply_edit(params) {
    return http.put('/by-retreat-apply/',params)
}
//修改申请单
export function by_retreatApply_del(params) {
    return http.delete('/by-retreat-apply/'+params)
}
//管理端提交接口 数据流向到客户端客户待确认
export function by_retreatApply_submit(params) {
    return http.post('/by-retreat-apply/submit',params)
}
//客户确认到待仓库再次确认
export function by_retreatApply_csrSubmit(params) {
    return http.post('/by-retreat-apply/csrSubmit',params)
}
//仓库再次确认-到已接收未结算:46 已接收，66：取消入库
export function by_retreatApply_whSubmit(url,params) {
    return http.post('/by-retreat-apply/whSubmit/'+url,params)
}
// 预报数据审核-86通过，96不通过
export function by_retreatApply_forecast(url,params) {
    return http.put('/by-retreat-apply/forecast/'+url+'/'+params)
}
// 预报审核不通过编辑 6:退件待审核 76预报待审核
export function by_retreatApply_through(url,params) {
    return http.put('/by-retreat-apply/forecast-not-through/'+url,params)
}
// 已接收未结算,处理完成到客服审核
export function by_retreatApply_reviewService(params) {
    return http.post('/by-retreat-apply/reviewService',params)
}
// 客服提交到财务审核审核
export function by_retreatApply_faAudit(params) {
    return http.post('/by-retreat-apply/faAudit',params)
}
// 获取预报数据-先获取预报数据中已确定的数据，再拿数据ID 来获取详情
export function by_retreatApply_forecastData(params) {
    return http.get('/by-retreat-apply/forecastData/'+params)
}
// 财务结算
export function by_retreatApply_settlement(params) {
    return http.post('/by-retreat-apply/settlement',params)
}


//无预报退件
export function by_retreat_batch(params) {
    return http.post('/by-retreat-batch',params)
}
//无预报分页查询as
export function by_retreat_pageBatch(params) {
    return http.post('/by-retreat-batch/pageBatchMage',params)
}
//客户端吧无预报分页查询as
export function by_retreat_pageBatchMageCrs(params) {
    return http.post('/by-retreat-batch/pageBatchMageCrs',params)
}
//无预报分页审核
export function by_retreat_pageBatchMageAudit(params) {
    return http.post('/by-retreat-batch/pageBatchMageAudit',params)
}
//查询可用批次
export function by_retreat_BatchArray() {
    return http.get('/by-retreat-batch')
}
//查询可用批次
export function by_retreat_RetreatStock(params) {
    return http.get('/by-behalf-stock/get-csr-RetreatStock/'+params)
}
//根据批次查询运单
export function by_retreat_forecastInfo(url,params) {
    return http.post('/by-retreat-forecast-info/'+url,params)
}
//查询可用批次
export function by_retreat_forecastInfoGet(url) {
    return http.get('/by-retreat-forecast-info/'+url)
}
//仓库提交商品数据
export function by_retreat_whSubmitBatch(params) {
    return http.get('/by-retreat-batch/whSubmit/'+params)
}
//删除每一行无预报退件
export function by_retreat_delBatch(params) {
    return http.delete('/by-retreat-forecast-info/'+params)
}
//查询对应客户可用批次
export function by_retreat_batchCsrlist(params) {
    return http.get('/by-retreat-batch/csrlist/'+params)
}
//客户选择
export function by_retreat_batchCsdUpdate(url1,url2,params) {
    return http.put('/by-retreat-forecast-info/csdUpdate/'+url1+'/'+url2,params)
}
//仓库提交商品数据
export function by_retreat_batchwhSubmit(params) {
    return http.get('/by-retreat-batch/whSubmit/'+params)
}
//仓库提交商品数据
export function by_retreat_batchforecastInfo(params) {
    return http.put('/by-retreat-forecast-info',params)
}
// 客户端提交批次
export function by_retreat_batchforSubmit(params) {
    return http.put('/by-retreat-batch/csr-submit/'+params)
}
// 仓库确认客户填写的数据后确认到客服
export function by_retreat_whUpdate(params) {
    return http.put('/by-retreat-batch/wh-update/'+params)
}
// 仓库确认客户填写的数据后确认到客服
export function by_retreat_csdUpdate(params) {
    return http.put('/by-retreat-batch/csd-update/'+params)
}
// 财务确认费用项后数据入库
export function by_retreat_financialUpdate(params) {
    return http.put('/by-retreat-batch/financial-update/'+params)
}
// 查询气泡数据
export function by_retreat_getCountVo() {
    return http.get('/by-retreat-batch/getCountVo')
}
// 分页查询销毁及退回运单 10181弃件销毁 or 10186 退回
export function by_retreat_pageBatchOrder(params) {
    return http.post('/by-retreat-forecast-info/pageBatch',params)
}
// 退件服务项
export function cost_bounce(params) {
    return http.put('/incoming-Order/cost-bounce/'+params)
}
// 五预报退件服务项
export function cost_noBounce(params) {
    return http.put('/incoming-Order/no-cost-bounce/'+params)
}



